package User;

public class User {
    private int id;         // 用户ID
    private String name;    // 用户名
    private String pwd;     // 密码
    
    // 无参构造函数
    public User() {
    }
    
    // 有参构造函数
    public User(String name, String pwd) {
        this.name = name;
        this.pwd = pwd;
    }
    
    // getter和setter方法
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getPwd() {
        return pwd;
    }
    
    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
}